FROM registry.cn-hangzhou.aliyuncs.com/jk/apache-tomcat-9:v0.70
MAINTAINER chendw <chendw@bsoft.com.cn>

ARG  NAMESPACE=hc
ARG  APP_VERSION=3.2-SNAPSHOT
ARG  APP_NAME
ENV HOST_RPC=false \
  NAMESPACE="${NAMESPACE}" \
    APP_VERSION="0.0.1-SNAPSHOT" \
    APP_NAME="${APP_NAME}" \
    DOMAIN_NAME="hcs" \
    ZK_SVR="zookeeper:2181" \
    RPC_SVR="0.0.0.0:9006" \
    DB_SVR="10.8.3.57" \
    DB_PORT="3306" \
    DB_NAME="common_clinical_test" \
    DB_USER="root" \
    DB_PASS="IkoYifewrqLgzh3ncFNwnEqcw5yyjyaYeofaG9S1os0EDK3Yt44d37q1Wi2mjNiOQM8SEU5q0jcnbmpHEx2EFg==" \

    GOL_CLIENT_URL="http://hc.dev.atag.bsoft.com.cn/hcn-online-consult" \
    HIS_CLIENT_URL="http://10.8.3.125:8300/framework" \
    EDITOR_FOLLOW_UP="http://hc.zk.atag.bsoft.com.cn/followup" \
    HOL_FAMILY_URL="http://wxtest01.atag.bsoft.com.cn/base-service" \
    HOL_WEB_URL="http://wxtest01.atag.bsoft.com.cn/web" \
    GOL_FAMILY_URL="http://hc.dev.atag.bsoft.com.cn/hcn-web" \
    IMG_UPLOAD_URL="" \
    HEALTHRECORD_ORGANIZATION_ID="" \
    ESIGN_URL="https://smlopenapi.esign.cn" \
    SIGN_APP_ID="7438804062" \
    SIGN_APP_SECRET="2c9c44c93527164591e9bf5d225a3179" \
    WEB_SERVICE_URL="http://10.10.2.85:8089/mrc/ws/service.ws?wsdl" \
    EXAM_APPOINTMENT_URL="http://10.10.2.85:8089/mrc/ws/service.ws?wsdl" \
    WHIS_PATH_URL="http://10.1.3.240:8081/bs-whis/" \
    PHIS_PATH_URL="http://10.8.2.161:9528/hai/WebServiceEntry?wsdl" \
    COMMON_PROXY_URL="http://jkt.bsoft.com.cn/common-proxy" \
    JYHJ_ORIGINORG="45575561-0" \
    JYHJ_URL="http://10.8.2.177:8090/labPlatInterface/mixInspectionServelet" \
    OPEN_PARAMS_ENCRYPTION="1" \
    OPEN_HEADER_SIGN_ENCRYPTION="1" \
    PROJECT_SOURCE="GOL" \
    TENANT_ID="hzsdsrmyy" \
    IMAGE_URL="http\://hol.bsoft.com.cn/file57/"

COPY ops/docker/init.sh /script/init.sh
RUN  rm -rf /usr/local/tomcat/webapps/* && chmod +x /script/init.sh

COPY target/hcn-specialist-ssdev4/  /usr/local/tomcat/webapps/hcn-specialist
CMD ["/script/init.sh"]
